package com.vegetable.modules.mapper.stock;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.vegetable.modules.entity.stock.CostAllocationRecord;
import com.vegetable.modules.vo.stock.CostAllocationRecordVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * <p>
 * 成本分摊记录表 Mapper 接口
 * </p>
 *
 * @author Qwen
 * @since 2025-10-17
 */
@Mapper
public interface CostAllocationRecordMapper extends BaseMapper<CostAllocationRecord> {

    /**
     * 分页查询成本分摊记录（包含商品信息）
     * @param page 分页对象
     * @param params 查询参数
     * @return 分页结果
     */
    IPage<CostAllocationRecordVO> selectCostAllocationRecordPageWithGoodsInfo(IPage<CostAllocationRecordVO> page, @Param("params") Map<String, Object> params);
}